﻿<UserControl x:Class="ModernWSPView.Pages.PageSetXmlDataSource"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Style="{StaticResource ContentRoot}">
        <ScrollViewer>
            <StackPanel MinWidth="200">
                <TextBlock Text="Définition de la source de données XML" Style="{StaticResource Heading2}" />
                <Grid Margin="5" AllowDrop="True" Drop="OnFileDrop">
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <TextBlock Text="Veuillez sélectionner un fichier Xml contenant les données extraites d'un ensemble de packages SharePoint (WSP)." 
                               Margin="0,10" Padding="5"
                               TextWrapping="WrapWithOverflow" Background="#FFFFFFDE" FontStyle="Italic" />
                    <mui:ModernButton Content="Sélectionner le fichier XML de données" Grid.Row="1" IconData="F1M0,3.05176E-05L0,29.22 23.94,29.22 23.94,7.95331 16.1561,3.05176E-05 0,3.05176E-05z M3.30002,3.30005L14.4,3.30005 14.4,9.06003 20.64,9.06003 20.64,25.92 3.30002,25.92 3.30002,3.30005z M5.70001,13.0283L18.24,13.0283 18.24,14.4 5.70001,14.4 5.70001,13.0283z M5.70001,16.74L18.24,16.74 18.24,18.24 5.70001,18.24 5.70001,16.74z M5.70001,20.58L18.24,20.58 18.24,22.1218 5.70001,22.1218 5.70001,20.58z" Click="OnSelectFile" FontSize="20" />
                    <StackPanel Grid.Row="2" Margin="0, 5, 0, 5" Height="50" VerticalAlignment="Center" Drop="OnFileDrop" AllowDrop="True" Background="WhiteSmoke">
                        <TextBlock Text="[ ou déposez le fichier xml ici ]" Margin="10, 0, 0, 0" Foreground="DarkGray" FontSize="20" />
                    </StackPanel>
                    <TextBlock Text="{Binding SourceFileName, FallbackValue='[Non défini]'}" Grid.Row="3" Margin="0, 5, 0, 5"/>
                </Grid>
            </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
